﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterFooter.master" AutoEventWireup="true" CodeFile="news.aspx.cs" Inherits="news" %>

<%@ Register Assembly="aspnetpager" Namespace="Wuqi.Webdiyer" TagPrefix="Webdiyer" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head2" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">
<div id="inadv06">
  <div id="black"></div>

    <table border="0" cellpadding="0" cellspacing="0" class="intable"><tr>
    <td valign="top"><div id="In-slogn"></div>
      <div id="Inshow">
      <div id="tt09"><span class="Pon-txt">首頁&gt;最新消息</span></div>
        <div id="All-INShow">
          <div id="News"></div>
          <div id="Know-table">                        
            <asp:Repeater ID="Repeater1" runat="server" onitemdatabound="Repeater1_ItemDataBound">
            <ItemTemplate>
                <a href='<%#String.Format("news-in.aspx?id={0}", DataBinder.Eval(Container,"DataItem.PostId"))%>'><div class="News-title"><asp:Label ID="lblTitle" runat="server" Text='<%# Bind("Title") %>'></asp:Label></div></a>
                <div class="Know-day"><asp:Label ID="lblShowDate" runat="server" Text='<%# Eval("ShowDate","{0:yyyy.MM.dd}") %>'></asp:Label></div>
            </ItemTemplate>
            </asp:Repeater>
          </div>
          <div id="PageNumber">
            <ul>
              <Webdiyer:AspNetPager ID="AspNetPager1" runat="server" CssClass="PageNumber" HorizontalAlign="center"
                    OnPageChanged="AspNetPager1_PageChanged" PageIndexBoxType="TextBox" PageSize="10"
                    ShowPageIndexBox="Never" ShowFirstLast="false" PrevPageText="<li class='PageNumber-LI1'>Back</li>" NextPageText="<li class='PageNumber-LI1'>Next</li>" NumericButtonTextFormatString="<li class='PageNumber-LI2'>{0}</li>" />
            </ul>
          </div>
          
        </div>
    </div>
      </td>
  </tr></table>
</div>
</asp:Content>

